package com.graduation.mybatis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.graduation.mybatis.bean.User;
import com.graduation.mybatis.service.UserService;
import com.graduation.mybatis.mapper.UserMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* @author 23726
* @description 针对表【user】的数据库操作Service实现
* @createDate 2025-03-30 17:25:36
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Resource
    private UserMapper userMapper;

    @Override
    public User selectUserByOpenId(String openId) {
        return userMapper.selectUserByOpenId(openId);
    }

    @Override
    public boolean updateUserById(User user) {
        return userMapper.updateUserById(user);
    }
}




